CMAKE_MINIMUM_REQUIRED(VERSION 3.20)

#SQLLite3 cmake 配置 编译器 mingw64

PROJECT(sqlite3)


include_directories(${CMAKE_SOURCE_DIR}/src)

# 编译exe
add_executable(sqlite src/sqlite3.c src/shell.c src/sqlite3.h src/sqlite3ext.h)


#编译链接库
add_library(sqlite3 SHARED src/sqlite3.c src/sqlite3.h src/sqlite3ext.h)
target_include_directories(sqlite3 PUBLIC src)

